package com.smz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smz.entity.TPost;
import com.smz.entity.TStaff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TStaffDAO extends BaseMapper<TStaff> {


    int selectTStaffCount();

    List<TStaff> selectTStaffByPage(@Param("start")Integer start, @Param("length") Integer length);


    //id查全部
    List<TStaff> selectAllTStaffById(@Param("id") Integer id);

    //id查单个
    TStaff selectTStaffById(@Param("id") Integer id);


    IPage<TStaff> selectTStaffByNameId(IPage<TStaff> tStaffPage,  @Param("name")String name,@Param("dId") Integer dId);

    List<TStaff>  selectAllTStaffs();


    void  updateTStaffById(@Param("id") Integer id ,@Param("accountStatus") String accountStatus);




}
